<?php

namespace app\api\controller;
header('Access-Control-Allow-Origin:*');
class Activity extends Base
{
    //检查权限作用域
    protected $beforeActionList  = [
        'checkPrimaryScope' => [
            'only' => ''
        ],
    ];

    /**
     * 大转盘奖品列表
     */
    public function wheel_index()
    {
        $result =  (new \app\api\logic\Activity())->wheel_index();
        return $this->ajaxReturn($result);
    }

    /**
     * 大转盘中奖列表
     */
    public function wheel_record()
    {
        $result =  (new \app\api\logic\Activity())->wheel_record();
        return $this->ajaxReturn($result);
    }

    /**
     * 大转盘抽奖
     */
    public function wheel()
    {
        $result =  (new \app\api\logic\Activity())->wheel();
        return $this->ajaxReturn($result);
    }

    /**
     * 大转盘抽奖次数
     */
    public function wheel_time(){
        $result =  (new \app\api\logic\Activity())->wheel_time();
        return $this->ajaxReturn($result);
    }    

    /**
     * 砸金蛋中奖列表
     */
    public function egg_record()
    {
        $result =  (new \app\api\logic\Activity())->egg_record();
        return $this->ajaxReturn($result);
    }

    /**
     * 砸金蛋抽奖
     */
    public function egg()
    {
        $result =  (new \app\api\logic\Activity())->egg();
        return $this->ajaxReturn($result);
    }

    /**
     * 砸金蛋抽奖次数
     */
    public function egg_time(){
        $result =  (new \app\api\logic\Activity())->egg_time();
        return $this->ajaxReturn($result);
    }  

    /**
     * 摇一摇中奖列表
     */
    public function shake_record()
    {
        $result =  (new \app\api\logic\Activity())->shake_record();
        return $this->ajaxReturn($result);
    }

    /**
     * 摇一摇抽奖
     */
    public function shake()
    {
        $result =  (new \app\api\logic\Activity())->shake();
        return $this->ajaxReturn($result);
    }

    /**
     * 摇一摇抽奖次数
     */
    public function shake_time(){
        $result =  (new \app\api\logic\Activity())->shake_time();
        return $this->ajaxReturn($result);
    } 
}